package handin07;

public abstract class AbstractPerson {
	
	private String name, street, zip, city;
	
	public AbstractPerson(String name, String street, String zip, String city) {
		super();
		this.name = name;
		this.street = street;
		this.zip = zip;
		this.city = city;
	}

	/**
	 * 
	 * @return the name
	 */
	public String getName() {
		return name;
	}

	/**
	 * 
	 * @return the street
	 */
	public String getStreet() {
		return street;
	}

	/**
	 * 
	 * @return the zip code
	 */
	public String getZip() {
		return zip;
	}

	/**
	 * 
	 * @return the city
	 */
	public String getCity() {
		return city;
	}
	
	/**
	 * 
	 * @return the person's address as one string
	 */
	public String getAddress() {
		return street + "\n" + zip + " " + city;
	}
	
}
